<template>
  <div>
    <!-- 路由占位符 -->
    <!-- keep-alive实现组件复用 切换时 不会重新加载接口 -->
    <!-- 我的-首页切换 -->
    <keep-alive>
      <router-view></router-view>
    </keep-alive>

    <van-tabbar route safe-area-inset-bottom>
      <van-tabbar-item to="/" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/mine" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'Main'
}
</script>

<style lang="less" scoped></style>
